//
//  PlayerRouter.swift
//  CosClub_Basis
//
//  Created by iOS on 2020/5/21.
//  Copyright © 2020 iOS. All rights reserved.
//

import Foundation

public enum PlayRoute :RoutePath{
    case home
    case player(Int)
}

extension PlayRoute {
    public func regist() -> String  {
           switch self {
           case .home:
               return "Player//home"
           case .player(_):
               return "Player//player<int: videoId>"
           }
       }
       
       public func push() -> String  {
           switch self {
           case .home:
               return "Player//home<int: videoId>"
           case .player(let id):
               return "Player//player/\(id)"
           }
       }
}
